package cn.efunbox.afw.core.entity;

import java.io.Serializable;

/**
 * add by tomas 2017-05-22
 * 枚举常见的返回码
 */
public abstract class AbstractApiCode implements Serializable {

    private int code;
    private String message;
    private final AbstractApiCode display;

    protected AbstractApiCode(int code, String messasge) {
        this.code = code;
        this.message = messasge;
        this.display=this;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public AbstractApiCode setMessage(String message) {
        this.message = message;
        return this;
    }
    public AbstractApiCode getDisplay() {
        return this.display;
    }
}